package com.company;


public class Task2 {


    public static void main(String[] args) {
        //todo 2.编写程序将 “jdk” 全部变为大写,然后截取子串”DK”
        String str = "jdk";
        String upStr = str.toUpperCase();
        System.out.println(upStr);

        String subStr = upStr.substring(1);
        System.out.println(subStr);
    }

}
